package com.project.dao;

import com.project.entity.University;

import java.util.List;

public interface UniversityMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(University record);

    int insertSelective(University record);

    University selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(University record);

    int updateByPrimaryKey(University record);

    /**
     * author: WheelChen
     * date: 2017/9/18
     * function: 查找所有
     *
     * @return
     */
    List<University> selectAll();

    /**
     * author: WheelChen
     * date: 2017/9/18
     * function: 获取大学及大学下的学院和对应的学院管理员信息（根据学院管理员数量分页）
     *
     * @param university
     * @return
     */
    List<University> selectUniversityAndSchoolsByCondition(University university);


    /**
     * author: WheelChen
     * date: 2017/9/18
     * function: 模糊分页搜索
     * 
     * @param university
     * @return
     */
    List<University> selectByCondition(University university);
}